Command Class Reference

#include <Command.h>

Inheritance diagram for Command:

CommandCopy CommandCut CommandDelete CommandDeselect CommandDeselectAll CommandInsertEnvObj CommandInsertTrafficLight CommandInsertTrafficSign CommandInsertVehicle CommandPaste CommandRotate CommandSelect CommandSelectAll CommandTranslate List of all members.

Public Member Functions

virtual ~Command ()
virtual bool execute ()=0
virtual bool unexecute ()=0

Detailed Description

A Command class.Abstract class for other commands.

Definition at line 5 of file Command.h.


Constructor & Destructor Documentation

virtual Command::~Command (   )  [inline, virtual]
 

A destructor. Make free your resources in subclasses.

Definition at line 12 of file Command.h.


Member Function Documentation

virtual bool Command::execute (   )  [pure virtual]
 

A pure virtual member.

Implemented in CommandCopy, CommandCut, CommandDelete, CommandDeselect, CommandDeselectAll, CommandInsertEnvObj, CommandInsertTrafficLight, CommandInsertTrafficSign, CommandInsertVehicle, CommandPaste, CommandRotate, CommandSelect, CommandSelectAll, and CommandTranslate.

Referenced by GUICommandManager::DoCommand(), and GUICommandManager::Redo().

virtual bool Command::unexecute (   )  [pure virtual]
 

A pure virtual member.

Implemented in CommandCopy, CommandCut, CommandDelete, CommandDeselect, CommandDeselectAll, CommandInsertEnvObj, CommandInsertTrafficLight, CommandInsertTrafficSign, CommandInsertVehicle, CommandPaste, CommandRotate, CommandSelect, CommandSelectAll, and CommandTranslate.

Referenced by GUICommandManager::Undo().


The documentation for this class was generated from the following file:
Generated on Sun May 28 18:54:12 2006 for TraffEdu by  doxygen 1.4.6-NO